#include "auxiliary.h"

char tolower(char c)
{
   if (c >= 'A' && c <= 'Z') return c - 'A' + 'a';
   return c;
}

int isxdigit(char c)
{
   c = tolower(c);
   if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f')) return 1;
   return 0;
}